if ( distance(self.id, self.attacker) > 500 )
{
    instance_destroy();
}
